import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        System.out.println("请输入当月的利润：");
        Scanner sc = new Scanner(System.in);
        double i = sc.nextInt();
        double num = 0;
        if(i<=10){
            num=i*0.05;
        }else if(i>10 && i <=20){
            num=10*0.05+(i-10)*0.07;
        }else if(i>20){
            num=10*0.05+10*0.07+(i-20)*0.1;
        }
        System.out.println("应发放奖金总数为："+num+"万元。");
    }
}